//
//  ExampleFontsView.swift
//  SwiftUIFly
//
//  Created by shen on 2023/10/18.
//

import SwiftUI

struct ExampleFontsView: View {
    var body: some View {
        Group {
            Group {
                ExampleSection(description: "A font with the large title text style.") {
                    Text("largeTitle")
                        .font(.largeTitle)
                }

                ExampleSection(description: "A font with the title text style.") {
                    Text("title")
                        .font(.title)
                }

                ExampleSection(description: "Create a font for second level hierarchical headings.") {
                    Text("title2")
                        .font(.title2)
                }

                ExampleSection(description: "Create a font for third level hierarchical headings.") {
                    Text("title3")
                        .font(.title3)
                }
            }

            Group {
                ExampleSection(description: "A font with the headline text style.") {
                    Text("headline")
                        .font(.headline)
                }

                ExampleSection(description: "A font with the subheadline text style.") {
                    Text("subheadline")
                        .font(.subheadline)
                }
            }

            ExampleSection(description: "A font with the body text style.") {
                Text("body")
                    .font(.body)
            }

            ExampleSection(description: "A font with the callout text style.") {
                Text("callout")
                    .font(.callout)
            }

            Group {
                ExampleSection(description: "A font with the caption text style.") {
                    Text("caption")
                        .font(.caption)
                }

                ExampleSection(description: "Create a font with the alternate caption text style.") {
                    Text("caption2")
                        .font(.caption2)
                }
            }

            ExampleSection(description: "A font with the footnote text style.") {
                Text("footnote")
                    .font(.footnote)
            }
        }
    }
}
